package session

type SessionMgr interface {
	Get(sessionId string) (session Session, err error)
	CreateSession() (session Session, err error)
	Init(adress string, options ...interface{}) error
}

func GetSession(sessionId string) (session Session, err error) {
	return sessionMgr.Get(sessionId)
}

func CreateSession() (session Session, err error) {
	return sessionMgr.CreateSession()
}
